﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using HZH_Controls.Controls;
using Petroleum.UC.Public;
using Petroleum.Model;
using Petroleum.Tool;

namespace Petroleum.UC
{
    /// <summary>
    /// 井眼轨迹图
    /// </summary>
    public partial class Step3Img : UserControl
    {
        FormMain main = new FormMain();
        public Step3Img(FormMain main)
        {
            InitializeComponent();
            this.main = main;
            picRecent.Initialization("Wells Slot Location");
            picSokorShales.Initialization("The Vertical Project");
            picMadama.Initialization("The Horizontal Projection");
            picPressureProfile.Initialization("The Horizontal Projection");
        }
        private void ucBtnExt4_BtnClick(object sender, EventArgs e)
        {
            Session.WellTrajectory.ImgWellsSlotLocation = picRecent.ImgUrl;
            Session.WellTrajectory.ImgTheVerticalProject = picSokorShales.ImgUrl;
            Session.WellTrajectory.ImgTheHorizontalProjection = picMadama.ImgUrl;
            Session.WellTrajectory.ImgTheHorizontalProjection2 = picPressureProfile.ImgUrl;
            main.AddControl(new Step4(main));
        }
        private void btnUp_BtnClick(object sender, EventArgs e)
        {
            main.AddControl(new Step3Table(main));
        }

        private void btnword_BtnClick(object sender, EventArgs e)
        {
            SessionDynamic session = new SessionDynamic()
            {
                //BasicInf = Session.BasicInf,
                //FormationPressure = Session.FormationPressure,
                WellTrajectory = Session.WellTrajectory
            };
            SpireDocUtil.CreateDoc(session, "D:/参与感/Others/文档/模板V1.0.docx", "G:/");
        }
    }
}
